package com.wnxy.admin.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author All
 * @since 2023-11-29
 */
@Data
@TableName("t_maintenance_tasks")
@ApiModel(value = "MaintenanceTasks对象", description = "")
public class MaintenanceTasks implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("唯一标识任务。")
    @TableId(value = "task_id", type = IdType.AUTO)
    @Excel(name = "ID", width = 10)
    private Long taskId;

    @ApiModelProperty("任务编号，用于标识和描述任务的编号 (外键)关联报警消息表主键。")
    @Excel(name = "任务消息编号", width = 10, needMerge = true)
    private Long taskAlarmId;

    @ApiModelProperty("运维人员编号，用于标识和描述运维人员的编号 (外键)关联运维人员表主键。")
    @Excel(name = "运维人员编号", width = 10, needMerge = true)
    private Long taskOperatorId;

    @ApiModelProperty("任务名称，用于描述任务的名称")
    @Excel(name = "任务名称", width = 20, needMerge = true)
    private String taskName;

    @ApiModelProperty("任务类型，描述任务的分类，例如：消警任务,抢修任务。")
    @Excel(name = "任务类型", width = 20, needMerge = true)
    private String taskType;

    @ApiModelProperty("任务开始时间。")
    @Excel(name = "任务开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss",needMerge = true)
    private Date startTime;

    @ApiModelProperty("任务结束时间")
    @Excel(name = "任务结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss",needMerge = true)
    private Date endTime;

    @ApiModelProperty("状态，0 待处理，-1 处理中，1 已处理。默认值为0")
    @Excel(name = "状态", width = 20, needMerge = true, replace = {"待处理_0", "已处理_1", "处理中_-1"})
    private Integer status;

    @ApiModelProperty("逻辑删除字段,0：未删除")
    @Excel(name = "逻辑删除", width = 20, needMerge = true, replace = {"未删除_0", "已删除_*"})
    private Integer flag;


}
